package com.zkc.blog.mapper;

import com.zkc.blog.pojo.Blog;
import com.zkc.blog.pojo.BlogExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
//import org.apache.ibatis.annotations.Param;

@Mapper
public interface BlogMapper {
	
	 int insert(Blog record);
	
	 int deleteById(Integer blogid);
	 
	 int deleteByExample(BlogExample example);
	 
	 int updateById(Blog record);
	 
	 Blog selectById(Integer blogid);
	 
	 List<Blog> selectByExample(BlogExample example);
	 
	 //查询所有年份
	 List<String> selectBlogYear();
	 
/*    int countByExample(BlogExample example);

    int deleteByExample(BlogExample example);

    int deleteByPrimaryKey(Integer blogid);

    int insert(Blog record);

    int insertSelective(Blog record);

    List<Blog> selectByExampleWithBLOBs(BlogExample example);

    List<Blog> selectByExample(BlogExample example);

    Blog selectByPrimaryKey(Integer blogid);

    int updateByExampleSelective(@Param("record") Blog record, @Param("example") BlogExample example);

    int updateByExampleWithBLOBs(@Param("record") Blog record, @Param("example") BlogExample example);

    int updateByExample(@Param("record") Blog record, @Param("example") BlogExample example);

    int updateByPrimaryKeySelective(Blog record);

    int updateByPrimaryKeyWithBLOBs(Blog record);

    int updateByPrimaryKey(Blog record);*/
}